package com.linhai.scm.entity.client;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.linhai.scm.entity.base.BaseBean;
import com.linhai.scm.entity.base.Client;
import com.linhai.general.enums.Enum_PayType;

/**
 * 客户积分
 * @author linhai
 *
 */
@Entity
@Table(name="TB_ClientIntegral")
public class ClientIntegral extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Client client;
	private BigDecimal value;
	private Enum_PayType payType;
	private String Remark;
	
	@ManyToOne
	@JoinColumn(name = "clientID")
	public Client getClient() {
		return client;
	}
	
	@Column(name = "value")
	public BigDecimal getValue() {
		return value;
	}
	@Column(name = "payType")
	public Enum_PayType getPayType() {
		return payType;
	}
	@Column(name = "Remark")
	public String getRemark() {
		return Remark;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public void setValue(BigDecimal value) {
		this.value = value;
	}
	public void setPayType(Enum_PayType payType) {
		this.payType = payType;
	}
	public void setRemark(String remark) {
		Remark = remark;
	}
}
